package com.gcorp.idealgas.type;

import java.awt.Color;

import com.gcorp.idealgas.Velocity;

public class CustomMolecule implements MoleculeType
{

    
    private float mass;
    
    private float radius;
    
    private Color color;
    
    private float vx;
    
    private float vy;
    
    public CustomMolecule(float mass,float radius, Color color,float vx,float vy)
    {

        this.mass = mass;
        this.radius = radius;
        this.color = color;
        this.vx = vx;
        this.vy = vy;
    }

    @Override
    public float getMass() 
    {
        return mass;
    }

    @Override
    public Color getColor() 
    {
        return color;
    }

    @Override
    public float getRadius() 
    {
        return radius;
    }

    @Override
    public Velocity getVelocity() 
    {
        return new Velocity(vx,vy);
    }

    @Override
    public void reverseX() 
    {
        vx = -vx;
    }

    @Override
    public void reverseY() 
    {
        vy = -vy;
    }

    @Override
    public void setdVx(float vx) 
    {
        this.vx = vx;
    }

    @Override
    public void setdVy(float vy) 
    {
        this.vy = vy;
    }
}